package com.ruoyi.module.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户设置对象 user_settings
 * 
 * @author ruoyi
 */
public class UserSettings extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 当前词典ID */
    @Excel(name = "当前词典ID")
    private String currentDictId;

    /** 当前章节 */
    @Excel(name = "当前章节")
    private Integer currentChapter;

    /** 当前评测词典ID */
    @Excel(name = "当前评测词典ID")
    private String currentEvalId;

    /** 当前评测章节 */
    @Excel(name = "当前评测章节")
    private Integer currentEvalChapter;

    /** 用户设置（JSON） */
    private String settingsJson;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCurrentDictId(String currentDictId) 
    {
        this.currentDictId = currentDictId;
    }

    public String getCurrentDictId() 
    {
        return currentDictId;
    }

    public void setCurrentChapter(Integer currentChapter) 
    {
        this.currentChapter = currentChapter;
    }

    public Integer getCurrentChapter() 
    {
        return currentChapter;
    }

    public void setCurrentEvalId(String currentEvalId) 
    {
        this.currentEvalId = currentEvalId;
    }

    public String getCurrentEvalId() 
    {
        return currentEvalId;
    }

    public void setCurrentEvalChapter(Integer currentEvalChapter) 
    {
        this.currentEvalChapter = currentEvalChapter;
    }

    public Integer getCurrentEvalChapter() 
    {
        return currentEvalChapter;
    }

    public void setSettingsJson(String settingsJson) 
    {
        this.settingsJson = settingsJson;
    }

    public String getSettingsJson() 
    {
        return settingsJson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("currentDictId", getCurrentDictId())
            .append("currentChapter", getCurrentChapter())
            .append("currentEvalId", getCurrentEvalId())
            .append("currentEvalChapter", getCurrentEvalChapter())
            .append("settingsJson", getSettingsJson())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}

